package com.pwt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * UploadFile
 *
 * @author auto generated
 * @date 2022-01-20 09:45:59
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[upload_file]")
@Schema(name = "UploadFile")
@DynamicInsert
@DynamicUpdate
public class UploadFile extends BaseEntity {

	/**
	 * ????
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "fileName",description = "????")
	@Column(name = "file_name", nullable = true, length = 255)
	private String fileName;

	/**
	 * ????
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "fileType",description = "????")
	@Column(name = "file_type", nullable = true, length = 16)
	private String fileType;

	/**
	 * ??????KB
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "fileSize",description = "??????KB")
	@Column(name = "file_size", nullable = true)
	private Integer fileSize;

	/**
	 * ??(1:??,0:??)
	 * nullable : true
	 * default  : 1
	 */
	@Schema(name = "status",description = "??(1:??,0:??)")
	@Column(name = "status", nullable = true)
	private Integer status;

	/**
	 * ???? 0-???
	 * nullable : false
	 * default  : 0
	 */
	@Schema(name = "deleted",description = "???? 0-???")
	@Column(name = "deleted", nullable = true)
	private Integer deleted;
}
